import 'package:flutter/material.dart';
import 'room_baseCell.dart';

class RoomRecommCell extends RoomBaseCell {
  const RoomRecommCell({super.key, super.index, required super.live});

  @override
  Widget build(BuildContext context) {
    return super.build(context);
  }

  @override
  Widget buildChild(BuildContext context) {
    ThemeData theme = Theme.of(context);
    return Padding(
        padding: EdgeInsets.all(8),
        child: Column(
          mainAxisAlignment: MainAxisAlignment.spaceBetween,
          children: [
            Row(
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: [
                Container(child: Text("头条主播")),
              ],
            ),
            Column(
              children: [
                Text(live.live?.title ?? "猪油这么香，为什么现在却没人吃了呢？"),
                Row(
                  mainAxisAlignment: MainAxisAlignment.spaceBetween,
                  children: [
                    Container(
                        child: Text(
                      live.user?.name ?? "",
                      style: theme.textTheme.bodySmall,
                    )),
                  ],
                )
              ],
            )
          ],
        ));
  }
}
